(with thanks to Richard Buckle and Jonathan Rentzsch for their contributions)
MacPPP Control is an AppleScript Addition which allows your scripts limited control over MacPPP. The addition allows you to open and close the PPP link, and to check the state (open/closed) of the link.
The package contains:
・ the MacPPP Control addition, which should be copied to the Scripting Additions folder of your Extensions folder.
・ examples which show how to use the commands provided by the MacPPP Control addition.
NOTE: If you use the Server parameter when calling the openPPP command, the Config PPP Control Panel *must* be closed. If Config PPP is open when openPPP tries to change the Server name, openPPP will fail because Config PPP locks to PPP preferences file. You can get around this by using the Scriptable Finder to close Config PPP before calling openPPP in your script.
NOTE: If you want to do a soft close rather than a hard close which is the default, use the following statement in your script:
closePPP without hard close
Firther details can be found in the MacPPP Control dictionary. Just drop the MacPPP Control file onto your script editor to display its dictionary.
To use this addition you need to have AppleScript v1.0 or later, and MacPPP or FreePPP .
Note that I have no association with the authors of MacPPP or FreePPP, apart from being a happy user of their software. There are no restrictions on use or distribution of MacPPP Control.
I can be contacted via E-mail at alldritt@wimsey.com
VERSION 1.3 OF MacPPP Control NOW DEPENDS HEAVILY ON THE INTERNALS OF MacPPP 2.0.1. FUTURE VERSIONS OF MacPPP MAY NOT BE COMPATIBLE WITH MacPPP Control. MacPPP Control IS PROVIDED AS-IS. USE FUTURE VERSIONS OF MacPPP WITH MacPPP Control AT YOUR OWN RISK.
Check out my other freeware and commercial offerings:
Script Tools (freeware)
File Visibility (freeware)
Script Debugger (commercial)
All of these items, including a demo version of Script Debugger, can be found in the Info-Mac archives (sumex-aim.stanford.edu) or the MacScripting archive (gaea.scriptweb.com//pub/applescript).
Edit History:
V1.5b2
- Added new optional parameter to openPPP to prevent openPPP demanding that it be executed from a foreground application.
- Switched to CodeWarrior to build MacPPP Control so that I can use Richard Buckle's PPP Interfaces libraries.My own PPP interface routines are no longer used.
- I've included a script for checking mail with Claris Emailer which was kindly contributed by Jonathan Rentzsch.
V1.5b1
- Corrected incompatibility with FreePPP. This version should operate with all existing versions of FreePPP (1.0.4 at this point in time).
- Added a new setPPPServer command which allows you to change the default server setting without having to do an openPPP.
- Included seperate versions of the Check The Mail example script for use with Eudora 1.4 and 1.5.
V1.4
- Corrected a bug which prevented the use of getPPPServer while the Config PPP Control Panel was open.
V1.3
- Modified openPPP to accept the name of the PPP Server to use. Added two new commands to query the name of the current server, and find the names of all defined servers.
V1.2
- Modified closePPP to ensure script is in the foreground before it proceeds to close the connection. This is done to avoid the MacPPP hang which occurs if closePPP is called from a background application. openPPP checks to ensure MacPPP is closed before it proceeds. closePPP checks to ensure MacPPP is open before it proceeds. Also added an additional example script entitled "Check The Mail".
V1.1
- example scripts are stored as text files instead of script applications to allow backward compatibility with AS 1.0. Also, my E-mail address is now correct. I apologize for any problems these items may have caused you.
V1.0
- initial release of hack to control MacPPP from AppleScript